package com.nexus.all.dto;

import com.nexus.bean.annotation.valid.AddGroup;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.time.LocalDateTime;

@Data
@NoArgsConstructor
@AllArgsConstructor
@ToString(callSuper = true)
@ApiModel("时间邮件入参")
public class UserTimeMailDTO {
    @ApiModelProperty(value = "用户ID", hidden = true)
    private Long userId;

    @ApiModelProperty("发送时间")
    @NotNull(message = "请选择发送时间", groups = AddGroup.class)
    private LocalDateTime sendTime;

    @ApiModelProperty("发送邮件")
    @NotBlank(message = "请输入送达的邮箱", groups = AddGroup.class)
    private String sendMail;

    @ApiModelProperty("内容标题")
    @NotBlank(message = "请输入邮件标题", groups = AddGroup.class)
    private String contentTitle;

    @ApiModelProperty("内容")
    @NotBlank(message = "请输入邮件内容", groups = AddGroup.class)
    private String content;

}
